<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%String path = request.getContextPath() ;%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %> 
<%@ taglib uri="/WEB-INF/tld/ui.tld" prefix="ui" %> 
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
 <meta name="renderer" content="webkit">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>客户列表</title>
<jsp:include page="../../import.jsp" flush="true" />
</head>

<script type="text/javascript">
	var prjId='${prjId}';
	var cstType='${cstType}';
	var cstId = '${cstId}';
	var prjCstId = '${prjCstId}';
	var cstRlCd  = '${cstRlCd}';
	var cstId = '${cstId}';
	var otherGrid = null;
	var buildingGrid = null;
	var equipmentGrid = null;
	var surveyPhotosGrid = null;
	var visitGrid = null;
	var prjCstEmpIntvRecGrid = null;
	var cstCorpHisGrid = null;
	var corpShrGrid = null;
	var cstCorpTeamGrid =null;
	var cstCorpTeamResumeGrid =null;
	var cstCorpHisGrid = null;
	var cstCorpRlCompGrid =null;
	var cstNpSocialRlGrid = null;
	var prjPrdInfoGrid = null;
	$(function () {
		initEquipmentGrid();//设备gird;
		initBuildingGrid();//房产grid
		initOtherGrid();//其他grid
		initSurveyPhotosGrid();//考察照片
		initVisitGrid();//家访照片
		initPrjCstEmpIntvRecGrid();//申请企业员工访谈记录（至少包含两个员工）
		initCstCorpHisGrid(); //历史沿革
		initCorpShrGrid();	//法人股东信息表
		initCstCorpTeamGrid();//法人企业团队
		initCstCorpTeamResumeGrid();//法人企业团队简历
		initCstCorpRlCompGrid();// 关联公司/合作机构
		initCstNpSocialRlGrid();//  社会关系情况说明 
		initPrjPrdInfoGrid();//项目产品类型
		setFormatDateValue();
		
		if(cstType==ProjectConstant.CST_TYP_CD_LP){
			$("#lpDiv").show();
			$("#corpAbiDiv").show();
			$("#corpRec").show();
		}

		if(cstType==ProjectConstant.CST_TYP_CD_NP){
			$("#npDiv").show();
			$("#npAbiDiv").show();
			$("#npRec").show();
			$("#npAssMbInfo").show();
		}
		
	});
	// 社会关系情况说明 
	function initCstNpSocialRlGrid(){
		var params = {};
		params.prjId = prjId;
		params.cstId = cstId;
		$("#cstNpSocialRlGrid").ligerGrid({
	    	url: '<%=path%>/customer/cstnpsocialrl/initList.do',
	    	method : 'get',
	    	parms:params,
	        columns: [
	            { display: '姓名', name: 'rlNm', minWidth: 100 ,enabledSort:true},
	            { display: '与申请人关系', name: 'rlTypCdNm', minWidth: 150},
	            { display: '身份证号', name: 'certNo', minWidth: 100 ,enabledSort:true},
	            { display: '工作/学习单位', name: 'workPlc', minWidth: 150 },
	            { display: '单位地址', name: 'workAddr', minWidth: 100 ,enabledSort:true},
	            { display: '联系方式', name: 'mp', minWidth: 150 },
	      /*       { display: '职务', name: 'pos', minWidth: 100 ,enabledSort:true}, */
	           
	        ],
	        pageSize:100,
	        root:'rows',
	        record:'total',
	        hideLoadButton : true,
	        width: '100%',
	        heightDiff:-2,
	        checkbox:false,
	        allowUnSelectRow: true,
            alternatingRow: false,
	        rownumbers:true,
	        usePagerOnLessPagesize: false,
	    });
		cstNpSocialRlGrid = liger.get("cstNpSocialRlGrid");
	}
	//设置日期值
	function setFormatDateValue(){
		var rptDt =$("#rptDt").text();
		if(rptDt){
	    	var rptDt = DateUtils.formatDate(new Date(rptDt),DateUtils.YYYY_MM_DD);
	    	$("#rptDt").text(rptDt);//日期
	    	}
		
	}
	function initPrjPrdInfoGrid(){
		var params = {};
		params.prjId = '${prjId}';
		params.cstId = cstId;
		$("#prjPrdInfoGrid").ligerGrid({
	    	url: '<%=path%>/project/prjprdbscinfo/initList.do',
	    	method : 'get',
	    	parms:params,
	        columns: [
	                { display: '供应商名称', name: 'splNm', minWidth: 100 ,
	                    render: function (rowdata, rowindex, value){
	                    	  var h="";
	                    	if(value){
		                     	h+='<a href="javascript:splDetail(';
		                        h+="'"+rowdata.splId+"'";
		                        h+=')">'+value+'</a>';
	                    	}
		                    return h;
		                },
	                	enabledSort:true},
	                
	  	            { display: '设备名称', name: 'prdNm', minWidth: 150 },
	  	            { display: '设备型号', name: 'prdMdl', minWidth: 100 ,
	  	              render: function (rowdata, rowindex, value){
	  	                var h = "";
	  	            	  if(value){
		                        h+='<a href="javascript:prdDetail(';
		                        h+="'"+rowdata.id+"',";
		                        h+="'"+rowdata.prjId+"'";
		                        h+=')">'+value+'</a>';
	  	            	  }
		                    return h;
		                },
	  	            	enabledSort:true},
	  	            
	  	            { display: '设备品牌', name: 'brCdNm', minWidth: 150 },
	  	            { display: '设备价格', name: 'guidePc', minWidth: 100 ,enabledSort:true},
	  	            { display: '设备数量', name: 'prdQty', minWidth: 150 },
	  	            { display: '是否为新品', name: 'isNewNm', minWidth: 100 ,enabledSort:true}
	  /* 	          {
		                display: '操作',
		                isSort: false,
		                width: 100,
		                render: function (rowdata, rowindex, value){
		                    var h='<a class="sq-button-hasicon" href="javascript:splDetail(';
		                        h+="'"+rowdata.splId+"'";
		                        h+=')"><i class="sqBtnIco_3"></i>供应商详情</a>'
		                    return h;
		                }
		            } */
	        ],
	        pageSize:100,
	        root:'rows',
	        record:'total',
	        hideLoadButton : true,
	        width: '100%',
	        heightDiff:-2,
	        checkbox:false,
	        allowUnSelectRow: true,
            alternatingRow: false,
	        rownumbers:true,
	        usePagerOnLessPagesize: false,
	    });
		prjPrdInfoGrid = liger.get("prjPrdInfoGrid");
	}
	function splDetail(splId){
		//供应商详细信息
		var url  ="<%=path%>/product/splInfo/toDetailPage.do?id="+splId;
		Add_navTab('tab_spl_detail'+splId,'供应商详细信息',url);
	}
	function prdDetail(id,prjId){
		//供应商详细信息
				var editFlag = true;
		Add_navTab('tab_prj_prd_info_detail'+id,'项目产品详细信息','<%=path%>/project/prjprdbscinfo/toModifyPage.do?id='+id+'&&prjId='+prjId+'&&detailFlag='+editFlag);
	}
	//  关联公司/合作机构
	function initCstCorpRlCompGrid(){
		var params = {};
		params.prjId = prjId;
		params.cstId = cstId;
		$("#cstCorpRlCompGrid").ligerGrid({
	    	url: '<%=path%>/customer/cstcorprlcomp/initList.do',
	    	method : 'get',
	    	parms:params,
	        columns: [
	            { display: '公司/机构名称', name: 'compNm', minWidth: 300 ,enabledSort:true},
	            { display: '与申请人关系', name: 'rlTypCdNm', minWidth: 450 },
	        ],
	        pageSize:100,
	        root:'rows',
	        record:'total',
	        hideLoadButton : true,
	        width: '100%',
	        heightDiff:-2,
	        checkbox:false,
	        allowUnSelectRow: true,
            alternatingRow: false,
	        rownumbers:true,
	        usePagerOnLessPagesize: false,
	    });
		cstCorpRlCompGrid = liger.get("cstCorpRlCompGrid");
	}
	// 法人企业团队简历信息表
	function initCstCorpTeamResumeGrid(){
		var params = {};
		params.prjId = prjId;
		params.cstId = cstId;
		$("#cstCorpTeamResumeGrid").ligerGrid({
	    	url: '<%=path%>/project/prjbscinfo/initCstCorpTeamResumeList.do',
	    	method : 'get',
	    	parms:params,
	        columns: [
				{ display: '名称', name: 'cstCorpTeamVO.mNm', minWidth: 200 ,enabledSort:true},
	            { display: '职务', name: 'post', minWidth: 150 ,enabledSort:true},
	            { display: '开始时间', name: 'startDt', minWidth: 150, render:renderDate},
	            { display: '结束时间', name: 'endDt', minWidth: 150 , render:renderDate,enabledSort:true},
	            { display: '任职公司', name: 'workPlc', minWidth: 240},
	        ],
	        pageSize:100,
	        root:'rows',
	        record:'total',
	        hideLoadButton : true,
	        width: '100%',
	        heightDiff:-2,
	        checkbox:false,
	        allowUnSelectRow: true,
            alternatingRow: false,
	        rownumbers:true,
	        usePagerOnLessPagesize: false,
	    });
		cstCorpTeamResumeGrid = liger.get("cstCorpTeamResumeGrid");
	}
	//法人企业团队
	function initCstCorpTeamGrid(){
		var params = {};
		params.prjId = prjId;
		params.cstId = cstId;
		$("#cstCorpTeamGrid").ligerGrid({
	    	url: '<%=path%>/customer/cstcorpteam/initList.do',
	    	method : 'get',
	    	parms:params,
	        columns: [
	            { display: '职务', name: 'mTypCdNm', minWidth: 200 ,enabledSort:true},
	            { display: '姓名', name: 'mNm', minWidth: 150, },
	         //   { display: '性别', name: 'equPropPct', minWidth: 100 , enabledSort:true},
	        //    { display: '年龄', name: 'cntrAmt', minWidth: 100 ,enabledSort:true},
	            { display: '身份证号', name: 'certNo', minWidth: 240, },
	            { display: '手机号', name: 'mp1', minWidth: 140, },
	            { display: '常住地址', name: 'homeAddr', minWidth: 240, },
	        ],
	        pageSize:100,
	        root:'rows',
	        record:'total',
	        hideLoadButton : true,
	        width: '100%',
	        heightDiff:-2,
	        checkbox:false,
	        allowUnSelectRow: true,
            alternatingRow: false,
	        rownumbers:true,
	        usePagerOnLessPagesize: false,
	    });
		cstCorpTeamGrid = liger.get("cstCorpTeamGrid");
	}
	//法人股东信息表
	function initCorpShrGrid(){
		var params = {};
		params.prjId = prjId;
		params.cstId = cstId;
		$("#corpShrGrid").ligerGrid({
	    	url: '<%=path%>/customer/cstcorpshr/initList.do',
	    	method : 'get',
	    	parms:params,
	        columns: [
	            { display: '股东名称', name: 'shrNm', minWidth: 150 ,enabledSort:true},
	            { display: '身份证号码或组织机构代码证号', name: 'certNo', minWidth: 350},
	            { display: '股权比例', name: 'equPropPct', minWidth: 100 , enabledSort:true},
	            { display: '出资额（万元）', name: 'cntrAmt', minWidth: 100 ,enabledSort:true},
	            { display: '出资形式', name: 'contrWay', minWidth: 150 },
	        ],
	        pageSize:100,
	        root:'rows',
	        record:'total',
	        hideLoadButton : true,
	        width: '100%',
	        heightDiff:-2,
	        checkbox:false,
	        allowUnSelectRow: true,
            alternatingRow: false,
	        rownumbers:true,
	        usePagerOnLessPagesize: false,
	    });
		corpShrGrid = liger.get("corpShrGrid");
	}
	//历史沿革
	function initCstCorpHisGrid(){
		var params = {};
		params.prjId = prjId;
		params.cstId = cstId;
		$("#cstCorpHisGrid").ligerGrid({
	    	url: '<%=path%>/project/prjbscinfo/initCstCorpHisList.do',
	    	method : 'get',
	    	parms:params,
	        columns: [
	            { display: '开始时间', name: 'startDt', minWidth: 200 ,render:renderDate,enabledSort:true},
	            { display: '结束时间', name: 'endDt', minWidth: 240,render:renderDate },
	            { display: '变更内容', name: 'prjDesc', minWidth: 540 , enabledSort:true},
	        ],
	        pageSize:100,
	        root:'rows',
	        record:'total',
	        hideLoadButton : true,
	        width: '100%',
	        heightDiff:-2,
	        checkbox:false,
	        allowUnSelectRow: true,
            alternatingRow: false,
	        rownumbers:true,
	        usePagerOnLessPagesize: false,
	    });
		cstCorpHisGrid = liger.get("cstCorpHisGrid");
	}

	function initPrjCstEmpIntvRecGrid(){
		//自然人
			var params = {};
		params.prjId = prjId;
		params.cstId = cstId;
		params.cstRlCd = cstRlCd;
		if(cstType==ProjectConstant.CST_TYP_CD_NP){
			 $("#prjCstEmpIntvRecGrid").ligerGrid({
			    	url: '<%=path%>/project/prjcstempintvrec/initList.do',
			    	method : 'get',
			    	parms:params,
			        columns: [
			            { display: '姓名', name: 'nm', minWidth: 160 },
			            { display: '联系方式', name: 'tel',minWidth: 140},
			           { display: '与申请人关系', name: 'assRlCdNm', minWidth: 140 , enabledSort:true},
			            { display: '访谈记录', name: 'commRec', minWidth: 500}
			        ],
			        pageSize:100,
			        root:'rows',
			        record:'total',
			        hideLoadButton : true,
			        width: '100%',
			        heightDiff:-2,
			        //isScroll: false,
			        checkbox:false,
			        rownumbers:true,
			        usePagerOnLessPagesize: false,
			    });
		}
		//法人
		if(cstType==ProjectConstant.CST_TYP_CD_LP){
			 $("#prjCstEmpIntvRecGrid").ligerGrid({
			    	url: '<%=path%>/project/prjcstempintvrec/initList.do',
			    	method : 'get',
			    	parms:params,
			        columns: [
			            { display: '姓名', name: 'nm', minWidth: 160 },
			            { display: '联系方式', name: 'tel',minWidth: 140},
			            { display: '职务', name: 'posCd', minWidth: 100},
			            { display: '访谈记录', name: 'commRec', minWidth: 400}
			        ],
			        pageSize:100,
			        root:'rows',
			        record:'total',
			        hideLoadButton : true,
			        width: '100%',
			        heightDiff:-2,
			        //isScroll: false,
			        checkbox:false,
			        rownumbers:true,
			        usePagerOnLessPagesize: false,
			    });
		}
	   
		prjCstEmpIntvRecGrid= liger.get("prjCstEmpIntvRecGrid");
	}
	function initVisitGrid(){
		var data = {};
		var _url = '<%=path%>/project/prjbscinfo/initGuarVisitList.do?prjCstId='+prjCstId+'&&cstTypCd='+cstType;
	    $("#visitGrid").ligerGrid({
	    	usePager: false,
	    	url: _url,
	    	method : 'get',
	        columns: [
				{ display: '描述', name: 'datNm', minWidth: 100},
	            { display: '文件名', name: 'fileRec.fileNm', 
				   	render: function (rowdata, rowindex, value, column) { 
	            		var h = '';
	            		if(rowdata.fileRec){
		            		if(rowdata.fileRec.filePath){
		            			
		            			if(SQ.regs.img.test(rowdata.fileRec.filePath)){
		            				  h+='<a  target="_blank" onclick="showImg(event);" href="'+rowdata.fileRec.filePath;
				                        h+='">'+value+'</a>'
		            			}else{
		            				  h+=value;
		            			}
		            			
		            		}
	            		}
	                        return h;
	            		},
					minWidth: 100},
	        ],
	        pageSize:100,
	        root:'rows',
	        record:'total',
	        hideLoadButton : true,
	        width: '100%',
	        checkbox:false,
	        allowUnSelectRow: true,
	        alternatingRow: false,
	        rownumbers:true,
	        usePagerOnLessPagesize: false,
	        onAfterShowData: function () {
	            $( ".gridTip").grid_ligerTip();
	            SetIframe_height ();
	       }
	    });
	    visitGrid = liger.get("visitGrid");
	    }
	function initSurveyPhotosGrid(){
	var data = {};
	var _url = '<%=path%>/project/prjbscinfo/initGuarSurveyList.do?prjCstId='+prjCstId+'&&cstTypCd='+cstType;
    $("#surveyPhotosGrid").ligerGrid({
    	usePager: false,
    	url: _url,
    	method : 'get',
        columns: [
			{ display: '描述', name: 'datNm', minWidth: 100},
            { display: '文件名', name: 'fileRec.fileNm', 
			   	render: function (rowdata, rowindex, value, column) { 
            		var h = '';
            		if(rowdata.fileRec){
	            		if(rowdata.fileRec.filePath){
	            			
	            			if(SQ.regs.img.test(rowdata.fileRec.filePath)){
	            				  h+='<a  target="_blank" onclick="showImg(event);" href="'+rowdata.fileRec.filePath;
			                        h+='">'+value+'</a>'
	            			}else{
	            				  h+=value;
	            			}
	            			
	            		}
            		}
                        return h;
            		},
				minWidth: 100},
        ],
        pageSize:100,
        root:'rows',
        record:'total',
        hideLoadButton : true,
        width: '100%',
        checkbox:false,
        allowUnSelectRow: true,
        alternatingRow: false,
        rownumbers:true,
        usePagerOnLessPagesize: false,
        onAfterShowData: function () {
            $( ".gridTip").grid_ligerTip();
            SetIframe_height ();
       }
    });
    surveyPhotosGrid = liger.get("surveyPhotosGrid");
    }

	//初始化列表
	function initOtherGrid(){
		var params = {};
		params.assPropCd = ProjectConstant.CST_ASS_PROP_OTH_CD;
		params.prjId = prjId;
		params.cstId = cstId;
		params.cstRlCd = cstRlCd;
		$("#otherGrid").ligerGrid({
	    	url: '<%=path%>/project/prjcstassmbInfo/initPrjCstAssMbInfoList.do',
	    	method : 'get',
	    	parms:params,
	        columns: [
	            { display: '资产名称', name: 'assNm', minWidth: 140, },
	            { display: '购买时间', name: 'purchDt', minWidth: 100 ,render:renderDate,enabledSort:true},
	            { display: '现估价（万元）', name: 'value', minWidth: 140 , enabledSort:true},
	            { display: '财产状况', name: 'assSts', minWidth: 140 , enabledSort:true},
	            { display: '与申请人关系', name: 'assRlCdNm', minWidth: 60, enabledSort:true },
	        ],
	        pageSize:100,
	        root:'rows',
	        record:'total',
	        hideLoadButton : true,
	        width: '100%',
	        heightDiff:-2,
	        checkbox:false,
	        allowUnSelectRow: true,
            alternatingRow: false,
	        rownumbers:true,
	        usePagerOnLessPagesize: false,
	    });
		otherGrid = liger.get("otherGrid");
	}
	function initBuildingGrid(){
		var params = {};
		params.assPropCd = ProjectConstant.CST_ASS_PROP_BUIL_CD;
		params.prjId = prjId;
		params.cstId = cstId;
		params.cstRlCd = cstRlCd;
		$("#buildingGrid").ligerGrid({
	    	url: '<%=path%>/project/prjcstassmbInfo/initPrjCstAssMbInfoList.do',
	    	method : 'get',
	    	parms:params,
	        columns: [
	            { display: '面积（平米）', name: 'area', minWidth: 60, enabledSort:true },
	            { display: '现估计（万元）', name: 'value', minWidth: 140 , enabledSort:true},
	            { display: '房屋登记号', name: 'assNo', minWidth: 140 , enabledSort:true},
	            { display: '所有权人', name: 'assOwner', width: 50,align:'left' , enabledSort:true},
	            { display: '与申请人关系', name: 'assRlCdNm', width: 50,align:'left' , enabledSort:true},
	            { display: '抵押状态', name: 'mStsCdNm', minWidth: 140 , enabledSort:true},
	            { display: '房屋地址', name: 'addr', minWidth: 140 , enabledSort:true},
	            { display: '权属性质', name: 'natureCdNm', minWidth: 140 , enabledSort:true},
	        ],
	        pageSize:100,
	        root:'rows',
	        record:'total',
	        hideLoadButton : true,
	        width: '100%',
	        heightDiff:-2,
	        checkbox:false,
	        allowUnSelectRow: true,
            alternatingRow: false,
	        rownumbers:true,
	        usePagerOnLessPagesize: false,
	    });
		buildingGrid = liger.get("buildingGrid");
	}
	function initEquipmentGrid(){
		var params = {};
		params.assPropCd = ProjectConstant.CST_ASS_PROP_EQUI_CD;
		params.prjId = prjId;
		params.cstId = cstId;
		params.cstRlCd = cstRlCd;
		$("#equipmentGrid").ligerGrid({
	    	url: '<%=path%>/project/prjcstassmbInfo/initPrjCstAssMbInfoList.do',
	    	method : 'get',
	    	parms:params,
	        columns: [
				{ display: '设备名称', name: 'assNm', minWidth: 140, enabledSort:true },
	            { display: '买入价格', name: 'untPc', minWidth: 60, enabledSort:true },
	            { display: '购买时间', name: 'purchDt', minWidth: 140 ,render:renderDate, enabledSort:true},
	            { display: '所有权人', name: 'assOwner', minWidth: 140 , enabledSort:true},
	            { display: '于申请人关系', name: 'assRlCdNm', width: 50,align:'left' , enabledSort:true},
	            { display: '抵押状态', name: 'mStsCdNm', width: 50,align:'left' , enabledSort:true},
	            { display: '设备状况', name: 'assSts', minWidth: 140 , enabledSort:true},
	            { display: '品牌', name: 'brNm', minWidth: 140, enabledSort:true },
	            { display: '号牌', name: 'assNo', minWidth: 140, enabledSort:true },
	        ],
	        pageSize:100,
	        root:'rows',
	        record:'total',
	        hideLoadButton : true,
	        width: '100%',
	        heightDiff:-2,
	        checkbox:false,
	        allowUnSelectRow: true,
            alternatingRow: false,
	        rownumbers:true,
	        usePagerOnLessPagesize: false,
	    });
		equipmentGrid = liger.get("equipmentGrid");
	}
	
	
	//格式化时间
	function renderDate(rowdata, index, value){
		var dateStr = "";
		if(null != value&&value!=''){
			var date = new Date(value);
			dateStr = DateUtils.formatDate(date, DateUtils.YYYY_MM_DD);
		}
		return dateStr;
	}
	
	function detailBtn(id){
        $.ligerDialog.open({ height: 500,width: 600, url: '<%=path%>/project/prjbscinfo/toPhotosDetailPage.do?id='+id, isResize: true});
	}
	
	function showImg(e){
		 e.preventDefault();
       var href = $(e.target).attr('href');
           SQ.imgPreview(href);
	}
	//格式化时间
	function renderDate(rowdata, index, value){
		var dateStr = "";
		if(null != value&&value!=''){
			var date = new Date(value);
			dateStr = DateUtils.formatDate(date, DateUtils.YYYY_MM_DD);
		}
		return dateStr;
	}
	
	function renderAmt(rowdata, index, value){
			if(typeof  value=='number'){
				 var num = new Number(value);
					var sAmt = parseFloat(value).toString();
					return sAmt; 
			}else{
				return " ";
			}
			}
	
	function checkImg(path){
		var flag = true;
	       reg = new RegExp('^.*\.(?:png|jpg|bmp|gif|jpeg)$');
	        if (!reg.test(path)) {
	        	flag = false;
	        };
	        return flag;
	}
	function iframeResize () {
	    if (parent.mainApp) {
	        parent.mainApp.parentTab.onResize();
	    };
	}
</script>

<body class="iframeBody">
	<div class="Wrapper">
	  <div class="pageIn2layout">
	<jsp:include page="../../project/prjbscinfo/prjGuarInvestRpt.jsp" flush="true" >
			<jsp:param name="currentNav" value="prjInvestRpt"/>
	</jsp:include>
	<div class="pageIn2L_mid">
	   <div>
		 <div id="pageInTab" class="pageInTab">
		 	 <div class="btnsBox">
               <a class="sq-button sq-button-round"  id="export"  href="<%=path%>/project/prjbscinfo/exportGuarInvesstRpt.do?prjId=${prjId}&&cstId=${cstId}&&cstRlCd=${cstRlCd}&&cstTypCd=${cstType}&&prjCstId=${prjCstId}">导出</a>
	      </div>
	      <div id="lpDiv" style="display: none"><!-- 法人 -->
	           	                     <div class="fieldset1 tabel_col clearFix">
		 		<div class="caption">
	                           <span class="title">担保人信息</span>
	            </div>
                            <div class="fieldBox col_33">
                                <div class="label">企业名称</div>
                                <div class="field">
                                    <span id="cstNm" name="cstNm">${bscInfo.cstNm}</span>
                                </div>
                            </div>
                             <div class="fieldBox col_33">
                                <div class="label">注册资本金</div>
                                <div class="field" style="margin-right: 5px;">
                                    <span id="regCapAmt" name="regCapAmt">${corpInfo.regCapAmt }</span>
                                </div>
                            </div>
                          <%--    <div class="fieldBox col_33">
                                <div class="label">员工数量</div>
                                <div class="field" style="margin-right: 5px;">
                                    <span id="empQtyCd" name="empQtyCd">${corpInfo.empQtyCd}</span>
                                </div>
                            </div> --%>
                           
                            <div class="fieldBox col_33">
                                <div class="label">企业性质</div>
                                <div class="field">
                                    <span id="corpTypCdNm" name="corpTypCdNm">${corpInfo.corpTypCdNm }</span>
                                </div>
                            </div>
                            <div class="fieldBox col_33">
                                <div class="label">办公用房使用权面积</div>
                                <div class="field">
                                    <span id="officeArea" name="officeArea" ligerui="width: 110">${corpInfo.officeArea }</span>
                                    <span class="requiredSymbol">平方米</span>
                                </div>
                            </div>
                            <div class="fieldBox col_33">
                                <div class="label">房产属性</div>
                                <div class="field">
                                 	<span id="prpAttr" name="prpAttr" ligerui="width: 110">${corpInfo.prpAttr}</span>
                                </div>
                            </div> 
                             <div class="fieldBox col_33">
                                <div class="label">价值</div>
                                <div class="field">
                                 	<span id="prpVal" name="prpVal" ligerui="width: 110">${corpInfo.prpVal }</span>
                                </div>
                            </div> 
                            
                             <div class="fieldBox col_33">
                                <div class="label">办公电话</div>
                                <div class="field">
                                	<span id="officeTel" name="officeTel">${corpInfo.officeTel }</span>
                                </div>
                            </div>
                                 <div class="fieldBox col_33">
                                <div class="label">办公传真</div>
                                <div class="field">
                                	<span id="corpTax" name="corpTax">${corpInfo.corpTax }</span>
                                </div>
                            </div>
                            <%--  <div class="fieldBox col_33">
                                <div class="label">办公地址</div>
                                <div class="field">
                                	<span id="officeAddr" name="officeAddr">${corpInfo.officeAddr}</span>
                                </div>
                            </div> --%>
                                         <div class="fieldBox col_33">
                                <div class="label">贷款卡号</div>
                                <div class="field">
                                	<span id="loanCardNo" name="loanCardNo">${corpInfo.loanCardNo }</span>
                                </div>
                            </div>
                            <div class="fieldBox col_33">
                                <div class="label">贷款卡密码</div>
                                <div class="field">
                                	<span id="loanCardPwd" name="loanCardPwd">${corpInfo.loanCardPwd }</span>
                                </div>
                            </div>
                        </div>
                      
                      
                         <div class="sqPanel">
			            <div class="sqPanel_head inL">
			                <span>历史沿革</span>
			            </div>
			            <div class="sqPanel_body">
			                <div id="cstCorpHisGrid" class="sq-grid"></div>
			            </div>
  					 </div> 
                      <div class="sqPanel">
			            <div class="sqPanel_head inL">
			                <span>股东及股权比例</span>
			            </div>
			            <div class="sqPanel_body">
			                <div id="corpShrGrid" class="sq-grid"></div>
			            </div>
  					 </div> 
                        
						<div class="fieldset1 tabel_col clearFix">
						  <div class="fieldBox col_100">
                                <div class="label">股东间关系</div>
                                <div class="field">
                                	<span id="mchr9" name="mchr9">${bscInfo.cstExtInfoVO.mchr9}</span>
                                </div>
                            </div>
                            </div>
                            
                            <div class="sqPanel">
			            <div class="sqPanel_head inL">
			                <span>主要管理人员基本信息</span>
			            </div>
			            <div class="sqPanel_body">
			                <div id="cstCorpTeamGrid" class="sq-grid"></div>
			            </div>
  					 </div> 
                            
                            
                            <div class="sqPanel">
			            <div class="sqPanel_head inL">
			                <span>主要管理人员工作简历</span>
			            </div>
			            <div class="sqPanel_body">
			                <div id="cstCorpTeamResumeGrid" class="sq-grid"></div>
			            </div>
  					 </div> 
                            
                              <div class="sqPanel">
			            <div class="sqPanel_head inL">
			                <span>关联公司/合作机构</span>
			            </div>
			            <div class="sqPanel_body">
			                <div id="cstCorpRlCompGrid" class="sq-grid"></div>
			            </div>
  					 </div> 
               </div>         
            <div id="npDiv" style="display: none">
	               <div class="fieldset1 tabel_col clearFix">
            	<div class="caption">
	                           <span class="title">担保人信息</span>
	            </div>
	                 <div class="fieldBox col_33">
			                    <div class="label">姓名</div>
			                    <div class="field">
			                    	<label></label>
			                        <span id="cstNm" name="cstNm">${bscInfo.cstNm}</span>
			                    </div>
			                </div>
			                 <div class="fieldBox col_33">
			                    <div class="label">曾用名</div>
			                    <div class="field">
			                    	<label></label>
			                        <span id="usedNm" name="usedNm">${npInfo.usedNm}</span>
			                    </div>
			                </div>
			                
			            <div class="fieldBox col_33">
			                    <div class="label">性别</div>
			                    <div class="field">
			                     	<span id="genderCdNm" name="genderCdNm">${npInfo.genderCdNm}</span>
			                    </div>
			                </div>   
			                 <div class="fieldBox col_33">
			                    <div class="label">年龄</div>
			                    <div class="field">
			                    	<span id="age" name="age">${npInfo.age}</span>
			                    </div>
			                </div>  
			                <div class="fieldBox col_33">
			                    <div class="label">证件号</div>
			                    <div class="field">
			                        <span id="rl_certNo" name="rl_certNo">${bscInfo.certNo}</span>
			                    </div>
			                </div>
			                <div class="fieldBox col_33">
			                    <div class="label">手机号码</div>
			                    <div class="field">
			                        <span id="mp1" name="mp1">${npInfo.mp1}</span>
			                    </div>
			                </div>
			                    <div class="fieldBox col_33">
			                    <div class="label">工作单位</div>
			                    <div class="field">
			                    	<span id="rl_workPlc" name="rl_workPlc">${npInfo.workPlc}</span>
			                    </div>
			                </div>
			                  <div class="fieldBox col_33">
			                    <div class="label">职务</div>
			                    <div class="field">
			                    	<span id="posCdNm" name="posCdNm">${npInfo.posCdNm}</span>
			                    </div>
			                </div>
			                  <div class="fieldBox col_100">
			                    <div class="label">单位地址</div>
			                    <div class="field">
			                    	<span id="rl_workAddr" name="rl_workAddr">${npInfo.workAddr}</span>
			                    </div>
			                </div>
			                 <div class="fieldBox col_100">
			                    <div class="label">驾照类型</div>
			                    <div class="field">
			                    	<span id="drvLicTyp" name="drvLicTyp">${npInfo.drvLicTyp}</span>
			                    </div>
			                </div>
			                  <div class="fieldBox col_100">
			                    <div class="label">通讯地址</div>
			                    <div class="field">
			                        <span id="postAddr" name="postAddr">${npInfo.postAddr}</span>
			                    </div>
			                </div>
			                  <div class="fieldBox col_33">
			                    <div class="label">从业年限</div>
			                    <div class="field">
			                        <span id="workYrs" name="workYrs">${npInfo.workYrs}</span>
			                    </div>
			                </div>
			                <div class="fieldBox col_33">
			                    <div class="label">婚姻状况</div>
			                    <div class="field">
			                        <span id="marStsCdNm" name="marStsCdNm">${npInfo.marStsCdNm}</span>
			                    </div>
			                </div>
	          	  </div>
	          	  
	          	          <div class="sqPanel">
			            <div class="sqPanel_head inL">
			                <span>社会关系情况说明</span>
			            </div>
			            <div class="sqPanel_body">
			                <div id="cstNpSocialRlGrid" class="sq-grid"></div>
			            </div>
  					 </div> 
	          	  
            </div> 
                 
                   <div class="sqPanel">
			            <div class="sqPanel_head inL">
			                <span>融资信息</span>
			            </div>
			            <div class="sqPanel_body">
			                <div id="prjPrdInfoGrid" class="sq-grid"></div>
			            </div>
  					 </div> 
                 
                 
	            <div  id="npAssMbInfo"  style="display: none">
	            
	             <div class="sqCaption-normal">
	            <div class="tit">
	           家庭财产情况
	            </div>
        		</div>
	             <div class="sqPanel">
			            <div class="sqPanel_head inL">
			                <span>车辆设备</span>
			            </div>
			            <div class="sqPanel_body">
			                <div id="equipmentGrid" class="sq-grid"></div>
			            </div>
  					 </div> 
	                  <div class="sqPanel">
			            <div class="sqPanel_head inL">
			                <span>住房类型</span>
			            </div>
			            <div class="sqPanel_body">
			                <div id="buildingGrid" class="sq-grid"></div>
			            </div>
  					 </div> 
	            
	            
	                      <div class="sqPanel">
			            <div class="sqPanel_head inL">
			                <span>其他财产</span>
			            </div>
			            <div class="sqPanel_body">
			                <div id="otherGrid" class="sq-grid"></div>
			            </div>
  					 </div>
				  </div>
	             <!-- -----------------------------------申请企业还款能力调查（财务数据以客户提报资料中最新报表为依据）--------------------------------------------------------------------------------------- -->                          
	         <div id="corpAbiDiv" style="display: none">
	             <div class="fieldset1 tabel_col clearFix">
	             <div class="caption">
	                           <span class="title">申请企业还款能力调查（财务数据以客户提报资料中最新报表为依据）</span>
	            </div>
		                      <div class="fieldBox col_33">
				                    <div class="label">自有车辆数量</div>
				                    <div class="field">
				                        <span>${abi.ownCarNum }</span>
				                    </div>
		               		 </div>
		               		  <div class="fieldBox col_33">
				                    <div class="label">管理车辆数量</div>
				                    <div class="field">
				                     <span name="mgrCarNum"  id="mgrCarNum">${abi.mgrCarNum }</span>
				                    </div>
		               		 </div>
		               		   <div class="fieldBox col_33">
				                    <div class="label">客户数量</div>
				                    <div class="field">
				                    <span name="cstNum"  id="cstNum" >${abi.cstNum }</span>
				                    </div>
		               		 </div>
		               		  <div class="fieldBox col_33">
				                    <div class="label">从业年限</div>
				                    <div class="field">
				                    <span name="year"  id="year" >${abi.year }</span>
				                    </div>
		               		 </div>
		               		  <div class="fieldBox col_100">
				                    <div class="label">房产、土地情况</div>
				                    <div class="field">
				                    <span name="hsePptLandSts"  id="hsePptLandSts">${abi.hsePptLandSts }</span>
				                    </div>
		               		 </div>
		               		   <div class="fieldBox col_33">
				                    <div class="label"> 资产规模</div>
				                    <div class="field">
				                      <span name="assScl"  id="assScl">${abi.assScl }</span>
				                    </div>
		               		 </div>
		               		  <div class="fieldBox col_33">
				                    <div class="label">负债</div>
				                    <div class="field">
				                    <span name="debt"  id="debt" >${abi.debt }</span>
				                    </div>
		               		 </div>
		               		   <div class="fieldBox col_33">
				                    <div class="label">净资产</div>
				                    <div class="field">
				                    <span name="netAss"  id="netAss" >${abi.netAss}</span>
				                    </div>
		               		 </div>
		               		   <div class="fieldBox col_33">
				                    <div class="label">流动资产</div>
				                    <div class="field">
				                    	<span name="liqAss"  id="liqAss" >${abi.liqAss }</span>
				                    </div>
		               		 </div>
		               		   <div class="fieldBox col_33">
				                    <div class="label"> 固定资产</div>
				                    <div class="field">
				                    <span name="fixAss"  id="fixAss" >${abi.fixAss }</span>
				                    </div>
		               		 </div>
		               		  <div class="fieldBox col_33">
				                    <div class="label">资产负债率</div>
				                    <div class="field">
				                    	<span name="assDebtRate"  id="assDebtRate">${abi.assDebtRate }</span>
				                    </div>
		               		 </div>
		               		   <div class="fieldBox col_33">
				                    <div class="label">主营业务收入</div>
				                    <div class="field">
				                    	<span name="mainBusiIncm"  id="mainBusiIncm" >${abi.mainBusiIncm }</span>
				                    </div>
		               		 </div>
		               		    <div class="fieldBox col_33">
				                    <div class="label"> 净利润</div>
				                    <div class="field">
				                    	<span name="netPrft"  id="netPrft" >${abi.netPrft }</span>
				                    </div>
		               		 </div>
		               		    <div class="fieldBox col_33">
				                    <div class="label"> 上年利润</div>
				                    <div class="field">
				                    	<span name="lstYearPrft"  id="lstYearPrft"> ${abi.lstYearPrft }</span>
				                    </div>
		               		 </div>
		               		    <div class="fieldBox col_100">
				                    <div class="label"> 对外抵押担保情况说明</div>
				                    <div class="field">
				                    	<span name="extMbDesc"  id="extMbDesc">${abi.extMbDesc }</span>
				                    </div>
		               		 </div>
		               		  
		               		<div class="fieldBox col_100">
				                    <div class="label"> 与融资租赁业务申请人关系说明</div>
				                    <div class="field">
				                    <span name="apyRelDesc"  id="apyRelDesc">${abi.apyRelDesc }</span>
				                    </div>
		               		 </div>
		               		 
		               		 	<div class="fieldBox col_100">
				                    <div class="label"> 担保能力说明</div>
				                    <div class="field">
				                    	<span name="guarAbiDesc"  id="guarAbiDesc">${abi.guarAbiDesc }</span>
				                    </div>
		               		 </div>
		               		 
		               		   <div class="fieldBox col_50">
				                    <div class="label">是否有犯罪记录或诉讼案件</div>
				                    <div class="field">
				                    	<span name="isCrimRecdNm"  id="isCrimRecdNm">${abi.isCrimRecdNm }</span>
				                    </div>
		               		 </div>
		               		  <div class="fieldBox col_50">
				                    <div class="label">是否曾经被金融机构执行资产</div>
				                    <div class="field">
				                    	<span name="isFinaInstAssNm"  id="isFinaInstAssNm">${abi.isFinaInstAssNm }</span>
				                    </div>
		               		 </div>
                                <div class="fieldBox col_50">
                                <div class="label"  id="compCrdtCdLable">担保企业我司信用记录</div>
                                <div class="field">
                                <span name="apyCrdtCdNm"  id="apyCrdtCdNm">${abi.apyCrdtCdNm }</span>
                                </div>
                            </div>
                            <div class="fieldBox col_50" >
                                <div class="label"> 法人代表我司信用记录</div>
                                <div class="field">
                                    <span name="corpReprCrdtCdNm"  id="corpReprCrdtCdNm">${abi.corpReprCrdtCdNm }</span>
                                </div>
                            </div>
		               		 
                              <div class="fieldBox col_50"  style="display: none">
                                <div class="field"> 
                              		<input name="abiId" id="abiId" type="text"  value="${abi.id }" >
                                </div>
                            </div>
                            </div>
  
  				</div>
  				<div id="npAbiDiv" style="display: none">
  					 <div class="fieldset1 tabel_col clearFix">
  					  <div class="caption">
	                           <span class="title">申请企业还款能力调查（财务数据以客户提报资料中最新报表为依据）</span>
	            	</div>
		               		<div class="fieldBox col_100">
				                    <div class="label"> 与融资租赁业务申请人关系说明</div>
				                    <div class="field">
				                    <span name="apyRelDesc"  id="apyRelDesc">${abi.apyRelDesc }</span>
				                    </div>
		               		 </div>
		               		 
		               		 	<div class="fieldBox col_100">
				                    <div class="label"> 担保能力说明</div>
				                    <div class="field">
				                    	<span name="guarAbiDesc"  id="guarAbiDesc">${abi.guarAbiDesc }</span>
				                    </div>
		               		 </div>
		               		 
		               		   <div class="fieldBox col_50">
				                    <div class="label">是否有犯罪记录或诉讼案件</div>
				                    <div class="field">
				                    	<span name="isCrimRecdNm"  id="isCrimRecdNm">${abi.isCrimRecdNm }</span>
				                    </div>
		               		 </div>
		               		  <div class="fieldBox col_50">
				                    <div class="label">是否曾经被金融机构执行资产</div>
				                    <div class="field">
				                    	<span name="isFinaInstAssNm"  id="isFinaInstAssNm">${abi.isFinaInstAssNm }</span>
				                    </div>
		               		 </div>
                                <div class="fieldBox col_50">
                                <div class="label"  id="apyCrdtCdNmLable">担保企业我司信用记录</div>
                                <div class="field">
                                <span name="apyCrdtCdNm"  id="apyCrdtCdNm">${abi.apyCrdtCdNm }</span>
                                </div>
                            </div>
		               		 
                              <div class="fieldBox col_50"  style="display: none">
                                <div class="field"> 
                              		<input name="abiId" id="abiId" type="text"  value="${abi.id }" >
                                </div>
                            </div>
                            </div>
  
  				
  				</div>
  <!-- -----------------------------------考察照片（考察人员必须在照片中出现）--------------------------------------------------------------------------------------- -->                          
			
			
	                      <div class="sqPanel">
			            <div class="sqPanel_head inL">
			                <span>考察照片（考察人员必须在照片中出现）</span>
			            </div>
			            <div class="sqPanel_body">
			                <div id="surveyPhotosGrid" class="sq-grid"></div>
			            </div>
  					 </div>
			
 <!-- -----------------------------------家访情况--------------------------------------------------------------------------------------- -->                          
			 <div class="sqPanel">
			            <div class="sqPanel_head inL">
			                <span>家访情况</span>
			            </div>
			            <div class="sqPanel_body">
			                <div id="visitGrid" class="sq-grid"></div>
			            </div>
  					 </div>
<!-- -----------------------------------申请企业员工访谈记录（至少包含两个员工）--------------------------------------------------------------------------------------- -->                          
			 <div class="sqPanel">
			            <div class="sqPanel_head inL">
			                   <span id="npRec" class="title" style="display: none">邻居/同业人员评价（需体现申请人家庭是否和睦）</span>
		                           <span id="corpRec" style="display: none" class="title">企业访谈记录</span>
			            </div>
			            <div class="sqPanel_body">
			                <div id="prjCstEmpIntvRecGrid" class="sq-grid"></div>
			            </div>
  					 </div>
			
<!-- -----------------------------------调查人员意见及承诺（调查人员对内容和资料的真实性、准确性、完整性及由此所作判断的合理性负责）--------------------------------------------------------------------------------------- -->                          
		          <div class="fieldset1 tabel_col clearFix">
			 <div class="caption">
		                           <span class="title">调查人员意见及承诺（调查人员对内容和资料的真实性、准确性、完整性及由此所作判断的合理性负责）</span>
		        </div> 
		                      <div class="fieldBox col_100">
				                    <div class="label">意见：</div>
				                    <div class="field">
				                    <span name="sugg"  id="sugg" >${rpt.sugg}</span>
				                    </div>
		               		 </div>
                                 <div class="fieldBox col_100">
                                <div class="label">承诺：</div>
                                <div class="field">
  									 <span>本人承诺担保人信息已现场核实，并对担保人做了尽职调查。<br/>并现场监督了客户在租赁合同及相关法律文件上的签字用印，对其真实性进行了核实。<br/>向公司提供的担保人相关权证资料及法律文件等资料和手续真实有效。<br/>若由于上述法律文件及资料真实性原因导致公司权益受到侵害，我个人愿意承担一切责任。</span>
                                   </div>
                            </div>
                                <div class="fieldBox col_50">
                                <div class="label">报告类型：</div>
                                <div class="field">
                                 <span name="cstRptTypCd"  id="cstRptTypCd" >${rpt.cstRptTypCdNm }</span>
                                </div>
                            </div>
                              <div class="fieldBox col_50">
                                <div class="label">调查人员签字：</div>
                                <div class="field">
                                 <span name="investor"  id="investor" >${rpt.investor }</span>
                                </div>
                            </div>
                            <div class="fieldBox col_50">
                                <div class="label">日期</div>
                                <div class="field">
                                 <span name="rptDt"  id="rptDt" >${rpt.rptDt }</span>
                                </div>
                            </div>
                              <div class="fieldBox col_50"  style="display: none">
                                <div class="field"> 
                              		<input name="rptId" id="rptId" type="text"  value="${rpt.id }" >
                                </div>
                            </div>
                            </div>
                         <div>
                         <span>备注：无论是否批准融资，狮桥融资租赁（中国）有限公司都将保留此客户申请及调查报告。</span>
                         </div>     
			</div>
		</div>
</div>
</div>
</div>
</body>
</html>